﻿#include "pch.h"
#include "LogSystem.h"

namespace Engine 
{
	std::shared_ptr<spdlog::logger> LogSystem::engineLogger;
	std::shared_ptr<spdlog::logger> LogSystem::editorLogger;

	LogSystem::LogSystem() = default;

	LogSystem::~LogSystem() = default;

	void LogSystem::Init()
	{
		spdlog::set_pattern("%^[%Y-%m-%d/%T][%n]: %v%$");

		engineLogger = spdlog::stdout_color_mt("GameEngine");
		engineLogger->set_level(spdlog::level::trace);

		editorLogger = spdlog::stdout_color_mt("GameEditor");
		editorLogger->set_level(spdlog::level::trace);
	}
}
